import request from '@/utils/request'

export function getBarChartData(timeRange) {
  return request({
    url: '/api/chart/bar',
    method: 'get',
    params: { timeRange }
  })
}

export function getPieChartData() {
  return request({
    url: '/api/chart/pie',
    method: 'get'
  })
}

